/*! \file Result.inl
 *	\brief 
 *
 *	created:	2010/12/13
 *	created:	13:12:2010   12:57
 *	filename: 	C:\src\tactics-engine\libs\core\Result.inl
 *	file path:	C:\src\tactics-engine\libs\core
 *	file base:	Result
 *	file ext:	inl
 *	author:		Vitalii Trubchaninov
 *				vitalii.trubchaninov@ubisoft.com
 */
namespace tt{

inline
Result Result::Success()
{
	return Result(S_SUCCEEDED);
}

inline
Result Result::Failure()
{
	return Result(S_FAILED);
}

inline
bool Result::succeeded() const
{
	return m_status == S_SUCCEEDED;
}

inline
bool Result::failed() const
{
	return m_status == S_FAILED;
}

//////////////////////////////////////////////////////////////////////////
inline
Result::Result( UInt status )
: m_status(status)
{

}

} //namespace tt